package com.rongzhe.house.common.constants;


import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class QueryConstants {

    public static Map<String, String> ROOM_NUM = new HashMap<String, String>() {
        {
            put("1", "1居");
            put("2", "2居");
            put("3", "3居");
            put("4", "3居以上");
        }

    };

    public static Map<String, String> AREA = new HashMap<String, String>() {
        {
            put("1", "10m²以下");
            put("2", "10-20m²");
            put("3", "20-30m²");
            put("4", "30m²以上");
        }

    };

    public static Map<String, List<BigDecimal>> AREA_VALUE = new HashMap<String, List<BigDecimal>>() {
        {
            put("1", new ArrayList<BigDecimal>() {
                {
                    add(BigDecimal.ZERO);
                    add(new BigDecimal(10));
                }
            });
            put("2", new ArrayList<BigDecimal>() {
                {
                    add(new BigDecimal(10));
                    add(new BigDecimal(20));
                }
            });
            put("3", new ArrayList<BigDecimal>() {
                {
                    add(new BigDecimal(20));
                    add(new BigDecimal(30));
                }
            });
            put("4", new ArrayList<BigDecimal>() {
                {
                    add(new BigDecimal(30));
                    add(null);
                }
            });


        }

    };


    public static Map<String, String> RENT = new HashMap<String, String>() {
        {


            put("1", "1500元一下");
            put("2", "1500-2000元");
            put("3", "2000-2500元");
            put("4", "2500元以上");
        }

    };


    public static Map<String, String> TYPE = new HashMap<String, String>() {
        {
            put("1", "荣者寓");//荣者寓
            put("2", "荣者合租");//荣者合租
            put("3", "荣者整租");//荣者整租
            put("4", "荣者民宿");//荣者民宿
            put("5", "荣者驿");//荣者驿
        }

    };

    public static Map<String, List<BigDecimal>> RENT_VALUE = new HashMap<String, List<BigDecimal>>() {
        {
            put("1", new ArrayList<BigDecimal>() {
                {
                    add(BigDecimal.ZERO);
                    add(new BigDecimal(1500));
                }
            });
            put("2", new ArrayList<BigDecimal>() {
                {
                    add(new BigDecimal(1500));
                    add(new BigDecimal(2000));
                }
            });
            put("3", new ArrayList<BigDecimal>() {
                {
                    add(new BigDecimal(2000));
                    add(new BigDecimal(2500));
                }
            });
            put("4", new ArrayList<BigDecimal>() {
                {
                    add(new BigDecimal(2500));
                    add(null);
                }
            });


        }

    };

    public static Map<String, String> ORDER_STR = new HashMap<String, String>() {

        {
            put("1", "insert_time");
            put("2", "rent");
            put("3", "area");
        }
    };


    public static Map<String, String> ORDER = new HashMap<String, String>() {

        {
            put("1", "DESC");
            put("2", "ASC");

        }
    };
}
